package com.yuandian.management.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yuandian.api.management.entity.ConfPageLabelMapping;
import com.yuandian.management.mapper.ConfPageLabelMappingMapper;
import com.yuandian.management.service.ConfPageLabelMappingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 页签映射关系表-Service实现
 * @author zfsn
 * @date 2023-7-28
 */
@Service
public class ConfPageLabelMappingServiceImpl extends ServiceImpl<ConfPageLabelMappingMapper, ConfPageLabelMapping>
        implements ConfPageLabelMappingService {

	@Autowired
	private ConfPageLabelMappingMapper mapper;

	@Override
	public ConfPageLabelMapping getConfPageLabelMapping(String pageLabelId, String menuId) {
		return this.getOne(new LambdaQueryWrapper<ConfPageLabelMapping>().eq(ConfPageLabelMapping::getPageLabelId, pageLabelId)
				.eq(ConfPageLabelMapping::getMenuId, menuId));
	}

}